/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DBConnection;

/**
 *
 * @author User
 */
import java.sql.Connection;
import java.util.ResourceBundle;

public abstract class DBConnector {

    public static String driver, url, username, password;

    public static DBConnector getFactory()
    {
        ResourceBundle settings = ResourceBundle.getBundle("SECPROG");
        driver = settings.getString("driver");
        url =  settings.getString("url");
        username = settings.getString("username");
        password = settings.getString("password");

        return new DBConnectionImpl(driver,url,username,password);
    }

    public abstract Connection getConnection();

}
